Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent unnecessary panics when compiling on x86_64 CPUs that dont support AVX or SSE4.2 #4928

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

Firaenix
Copy link
Contributor

Description

My company, Bitping, operates a distributed network of user devices to perform network tests and other types of work using WASM binaries. We use wasmer as the interpreter for these binaries and recently after an update one of our node operators with an AMD Turion II processor reported the following error at start up, which caused our application to fail to start.

image

This PR attempts to solve the panic by returning a Result instead if compilation fails on older x86_64 CPUs that dont support AVX or SSE4.2.

I've successfully compiled the package locally as well as run the compiler_singlepass tests, which all pass.

@Firaenix Firaenix requested a review from syrusakbary as a code owner July 13, 2024 12:19
@Firaenix
Copy link
Contributor Author

In regards to the cargo-deny CI step, do you want me to upgrade that crate? It's kind of outside of the scope of my fix

@syrusakbary
Copy link
Member

Merging directly as the fail is not caused by this PR

@syrusakbary syrusakbary merged commit 3535449 into wasmerio:main Jul 15, 2024
61 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants